
import React from "react";
import {Form,Input} from "antd";
import {diffProps} from "../../libs/funcs";
import { observer } from 'mobx-react';
/**
 * 输入框
 */
@observer
class FormTitle extends React.Component{

    constructor(props) {
        super(props);
        this.state={};
        this.store = props.store;
    }

    handleInputChange = (event) => {
        const { name, value } = event.target;
        if(this.store){
            this.store.updateField(name, value);
        }
    };

    render() {
        const {label} = this.props;
        return (
            <div style={{ fontWeight: 700, fontSize: 18 }}>
                {label}
            </div>
        );
    }
}

export default FormTitle;
